package com.wujie.market.service;

import com.wujie.market.po.Goods;

import java.util.List;

/**
 * ClassName: GoodsService
 * Description:
 * date: 2023/1/27 19:07
 *
 * @author 吴杰
 * @since JDK 1.8.0_31
 */
public interface GoodsService {

    List<Goods> querylist();

    List<Goods> listPlus(String gType,String gName);

    /**
    * Description: 通过ID查询
    * @author: 吴杰
    * @date: 2023/2/1 0:03
    * @param:
     * * @return:
    */
    Goods queryById(int id);

    int savaGoods(Goods goods);

    /**
    * Description: 插入一条数据
    * @author: 吴杰
    * @date: 2023/2/14 18:54
    * @param:
     * * @return:
    */
    int insertGoods(Goods goods);

    /**
    * Description: 查询需要补货的商品
    * @author: 吴杰
    * @date: 2023/2/15 19:35
    * @param:
     * * @return:
    */
    List<Goods> queryWarnGoods();

    /**
    * Description:查询销量最大的几个商品
    * @author: 吴杰
    * @date: 2023/2/22 20:22
    * @param:
     * * @return:
    */
    List<Goods> queryMaxSale();
}
